package com.zy.ems.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zy.ems.dao.UserDao;
import com.zy.ems.model.UserEntity;
import com.zy.ems.common.base.BaseDao;
import com.zy.ems.common.base.BaseService;

@Service
@Transactional
public class UserService extends BaseService<UserEntity, Integer> {
	@Autowired
	private UserDao userDao;

	public UserEntity login(String userName) {
		return this.userDao.getUserEntityByUserName(userName);
	}

	@Override
	public BaseDao<UserEntity, Integer> getEntityDao() {
		return this.userDao;
	}

}
